package com.sjy.mvvmdemo.roomdb.db

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * @Entity用来注解实体类,对应的是数据库的一张表结构
 */
@Entity(tableName = "sjy_user")
data class UserEntity(
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "_id")
    var _id :Int,

    @ColumnInfo(name = "user_name")
    var user: String = "",

    @ColumnInfo(name = "user_pass")
    var pass: String = "",

    @ColumnInfo(name = "user_email")
    var email: String = ""

)